<%@page import="aex.domain.ArticleCategory"%>
<%@page import="aex.domain.Article"%>
<%@page import="aex.service.ShowViewService"%>
<%@page import="aex.util.SSHUtil"%>
<%@page import="org.springframework.web.context.WebApplicationContext"%>
<%@page import="aex.domain.Puser"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
WebApplicationContext ac = SSHUtil.getApplication(request);
ShowViewService svService = (ShowViewService) ac.getBean(ShowViewService.SERVICE_NAME);
%>

<!DOCTYPE>
<html>
  <head>
    <base href="<%=basePath%>">
    <meta charset="UTF-8">
    <meta name="keywords" content="${webKeyWord}">
	<meta name="description" content="${webDescription}" />
	<title> ${webTitle} </title>
	<link rel="shortcut icon" href="images/favicon.ico" type="image/x-icon" />
  	
	<link rel="stylesheet" type="text/css" href="systemStyle/H-ui.css">
	<link rel="stylesheet" type="text/css" href="expandStyle/aex_userPage.css">
	<link rel="stylesheet" type="text/css" href="expandStyle/index.css" />
	<link rel="stylesheet" type="text/css" href="expandStyle/article.css" />
	<link rel="stylesheet" type="text/css" href="expandStyle/comment.css" />
	<link rel="stylesheet" type="text/css" href="expandStyle/drugs_detailed.css" />


	
	<script type="text/javascript" src="http://libs.useso.com/js/jquery/1.9.1/jquery.min.js"></script>
	<script type="text/javascript" src="expandStyle/aex_userPage.js"></script>
	<script type="text/javascript" src="expandStyle/Studyplay_vote.js"></script>
	<script type="text/javascript" src="expandStyle/drugs_detailed.js"></script>
	<script type="text/javascript">
		$(document).ready(function(){
		  $("#progressbar").study_vote([
		    {"name":"药效均值："+${medicine.meEffect},"data":${medicine.meEffect},"color":"#027C79"},
		    {"name":"安全度均值："+${medicine.meSafety},"data":${medicine.meSafety},"color":"#027C79"},
		    {"name":"性价比均值："+${medicine.mePrice},"data":${medicine.mePrice},"color":"#027C79"}
		  ]);
		}); 
	</script>
	<style type="text/css">
		h1,h2,h3{
			margin-top: 0px;
			margin-bottom: 0px;
		}
	</style>
	</head>
  <body>
    
    <!--导航栏-->
    
    <%
    	Puser user=(Puser)request.getSession().getAttribute("user");
    	if(user==null){
    		%>
    			<jsp:include page="/systemPage/headNavVisitor1.jsp"></jsp:include>		
    		<%
    	}else{
    		%>
				<jsp:include page="/systemPage/headNavVisitor2.jsp"></jsp:include>
    		<%
    	}
    %>
	
	
	
	
 <!--主要内容-->
  <div class="container">
     <div class="container_left">
         <!--当前位置-->
         <div id="place_here">
            当前位置 > <a href="index.html">广场</a> > <a href="#">${medicine.articleCategory.acName}</a>
         </div>
         <div class="drugs_box">
             <h2>${medicine.meName}</h2>
             <div class="small_name">通用名称：${medicine.meAlias}</div>
             <div class="drugs_content">
                	${medicine.meDescription}
             </div>
         </div>
         <!--综合评价-->
         <div class='evaluation_box'>
             <div class="all_evaluation">
                <h2>综合均值</h2>
                <h2>${medicine.meAvg}</h2>
             </div>
             <div class="evaluation_list">
                <div class="demo">
                  <div id="progressbar"></div>
                </div>
             </div>
              <!--分享-->
            <div class="bdsharebuttonbox" id="share_Id">
               <div class="share_title">分享：&nbsp;&nbsp;</div> <a href="#" class="bds_more" data-cmd="more"></a><a href="#" class="bds_qzone" data-cmd="qzone"></a><a href="#" class="bds_tsina" data-cmd="tsina"></a><a href="#" class="bds_tqq" data-cmd="tqq"></a><a href="#" class="bds_renren" data-cmd="renren"></a><a href="#" class="bds_weixin" data-cmd="weixin"></a>
              </div>
              <script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdPic":"","bdStyle":"0","bdSize":"16"},"share":{},"image":{"viewList":["qzone","tsina","tqq","renren","weixin"],"viewText":"分享到：","viewSize":"16"},"selectShare":{"bdContainerClass":null,"bdSelectMiniList":["qzone","tsina","tqq","renren","weixin"]}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=1244693285.js?cdnversion='+~(-new Date()/36e5)];</script>
         </div>
          <!--所有评价-->
          <div class="all_appraise">
             <div class="appraise_tittle">
                所有评价
             </div>
             
             <div class="comment_contentBox">
             
             <c:forEach var="item" items="${pageBean.objList}" varStatus="status">  
              <div class="comment_line">
              <div class="tourist">
                 <img src="${item.puser.puPhoto}" width="50px" height="50px" >
                <div><a href="#">${item.puser.puName}</a></div>
              </div>
              <div class="comment_content">
                <ul class="appraise_list">
                   <li>药效：${item.cmEffect}</li>
                   <li>安全度：${item.cmSafe}</li>
                   <li>性价比：${item.cmPice}</li>
                </ul>
                <div class="c_contentTop">
                  ${item.cmContent}
                </div>
              </div>
              </div>
            </c:forEach>
            
            
            </div>
          <!--分页-->
		<jsp:include page="/systemPage/paginationVisitor.jsp"></jsp:include>


         <!--写评价-->
           <div class="appraise_tittle appraise_tittle1">
                写评价
             </div>
            <div class="write_box">
            <form id="" action="visitor/visitor_addCommentMedicines.do?id=${medicine.meId}" method="post" class="Huiform demoform">
              <div class="write_appraise">
                 <div class="codeView">
                    <div class="formRow">
                      <div class="formControls">
                         <textarea name="content" cols="" rows="" class="textarea"  placeholder="说点什么..." datatype="*" nullmsg="评论不能为空！"></textarea>
                      </div>
                    </div>
                    <div class="formRow">
                       <input onclick="" class="button" id="p_comment1" type="submit" value="评论">
                    </div>
                 
                </div>
              </div>
               <div class="appraise_right">
                  <div class="appraise_rightLine">
                      <input type='hidden' name='effect' id="yx" value="5"/>
                      <div class="rightLine_title">药效：</div>
                      <div class="rightLine_number1">
                          <a href="javascript:void(0)">1</a>
                          <a href="javascript:void(0)">2</a>
                          <a href="javascript:void(0)">3</a>
                          <a href="javascript:void(0)">4</a>
                          <a href="javascript:void(0)" class='rightLine_numberUp' >5</a>
                      </div>
                      <div class="rightLine_meaning1">
                          
                      </div>
                  </div>
                  <div class="appraise_rightLine">

                     <input type='hidden' name='safe' id="aqd" value="5"/>
                      <div class="rightLine_title">安全度：</div>
                      <div class="rightLine_number2">
                          <a href="javascript:void(0)javascript:void(0)">1</a>
                          <a href="javascript:void(0)javascript:void(0)">2</a>
                          <a href="javascript:void(0)javascript:void(0)">3</a>
                          <a href="javascript:void(0)javascript:void(0)">4</a>
                          <a href="javascript:void(0)javascript:void(0)" class='rightLine_numberUp' >5</a>
                      </div>
                      <div class="rightLine_meaning2">
                          
                      </div>
                  </div>
                  <div class="appraise_rightLine">
                    <input type='hidden' name='pice' id="xbj" value="5"/>
                      <div class="rightLine_title">性比价：</div>
                      <div class="rightLine_number3">
                          <a href="javascript:void(0)">1</a>
                          <a href="javascript:void(0)">2</a>
                          <a href="javascript:void(0)">3</a>
                          <a href="javascript:void(0)">4</a>
                          <a href="javascript:void(0)" class='rightLine_numberUp' >5</a>
                      </div>
                      <div class="rightLine_meaning3">
                      </div>
                  </div>
              </div>
             </form>
            </div>
     </div>
     </div>
  	 <!-- 侧边栏 -->
  	 <jsp:include page="/systemPage/cbl1.jsp"></jsp:include>
  </div>
    <!--网站底部-->
	<jsp:include page="/systemPage/footerVisitor.jsp"></jsp:include>
  </body>
</html>
